// src/assets/menuConfig.js
const menuConfig = [
    // 首頁菜單
    {
        activeTopNav: 'home',
        items: [
            {
                index: '/workbench',
                title: '工作台',
                icon: 'PieChart'
            },
            {
                index: '/schedule',
                title: '日程待辦',
                icon: 'Calendar'
            }
        ]
    },
    // 組織架構菜單
    {
        activeTopNav: 'organization',
        items: [
            {
                index: 'organization',
                title: '組織架構',
                icon: 'OfficeBuilding',
                children: [
                    {
                        index: '/contacts',
                        title: '通訊錄'
                    },
                    {
                        index: '/orgManagement',
                        title: '組織管理'
                    },
                    {
                        index: '/orgChart',
                        title: '組織架構圖'
                    },
                    {
                        index: '/workLocations',
                        title: '工作地點'
                    }
                ]
            },
            {
                index: 'position',
                title: '職位體系',
                icon: 'Briefcase',
                children: [
                    {
                        index: '/positionManagement',
                        title: '職位管理'
                    },
                    {
                        index: '/jobManagement',
                        title: '職務管理'
                    },
                    {
                        index: '/rankManagement',
                        title: '職級管理'
                    },
                    {
                        index: '/jobCategories',
                        title: '職位類別'
                    }
                ]
            },
            {
                index: '/roleManagement',
                title: '角色管理',
                icon: 'Avatar'
            },
            {
                index: 'settings',
                title: '設置',
                icon: 'Tools',
                children: [
                    {
                        index: '/orgTypes',
                        title: '組織類型'
                    },
                    {
                        index: '/contactFields',
                        title: '通訊錄字段設置'
                    }
                ]
            }
        ]
    },
    // 員工
    {
        activeTopNav: 'performance',
        items: [
            {
                index: 'position',
                title: '職位體系',
                icon: 'Briefcase',
                children: [
                    {
                        index: '/roster',
                        title: '花名冊'
                    },
                    {
                        index: '/employessFiles',
                        title: '員工檔案'
                    }
                ]
            },
            {
                index: 'employeeRelations',
                title: '員工關係',
                icon: 'Avatar',
                children: [
                    {
                        index: '/onboardingManagement',
                        title: '入職管理'
                    },
                    {
                        index: '/probationConversionManagement',
                        title: '轉正管理'
                    },
                    {
                        index: '/personnelTransfer',
                        title: '人事調動'
                    },
                    {
                        index: '/separationManagement',
                        title: '離職管理'
                    },
                    {
                        index: '/personnelChangeRecords',
                        title: '異動記錄'
                    },
                    {
                        index: '/contractManagement',
                        title: '合同管理'
                    },
                    {
                        index: '/employeeCare',
                        title: '員工關懷'
                    }
                ]
            },
            {
                index: 'employeePerformance',
                title: '統計分析',
                icon: 'HelpFilled',
                children: [
                    {
                        index: '/empOverview',
                        title: '員工概況'
                    },
                    {
                        index: '/trendAnalysis',
                        title: '趨勢分析'
                    },
                    {
                        index: '/activeEmp',
                        title: '在職員工分析'
                    },
                    {
                        index: '/onboarding',
                        title: '入職員工分析'
                    },
                    {
                        index: '/offboarding',
                        title: '離職員工分析'
                    },
                    {
                        index: '/transfer',
                        title: '員工調動分析'
                    },
                ]
            },
            {
                index: '',
                title: '設置',
                icon: 'Tools',
                children: [
                    {
                        index: '/onboardingManagement',
                        title: '員工檔案字段設置'
                    },
                ]
            }
        ]
    },
    // 考勤
    {
        activeTopNav: 'Attendance',
        items: [
            {
                index: 'Attendance',
                title: '考勤管理',
                icon: 'calendar',
                children: [
                    {
                        index: '/AttendanceManagement',
                        title: '考勤組管理'
                    },
                    {
                        index: '/ClassesManage',
                        title: '班次管理'
                    },
                    {
                        index: '',
                        title: '排班管理'
                    },
                    {
                        index: '',
                        title: '考勤規則'
                    },
                    {
                        index: '',
                        title: '打卡方式'
                    },
                ]
            },

        ]
    },

    // 系統設置
    {
        activeTopNav: 'setting',
        items: [
            {
                index: 'enterpriseInfo',
                title: '企業信息',
                icon: 'School',
            },
            {
                index: 'permissionSet',
                title: '系統權限管理',
                icon: 'lock',
                children:[
                    {
                        index: '/adminManagement',
                        title: '管理員管理'
                    },
                    {
                        index: '/permissionGroup',
                        title: '權限組管理'
                    },
                ]
            },
            {
                index: 'articleManagement',
                title: '文章管理',
                icon: 'collection',
            },
            {
                index: 'operationLog',
                title: '操作日誌',
                icon: 'notebook',
            },
        ]
    },

    // 培訓
    {
        activeTopNav: 'training',
        items: [
            {
                index: 'trainProgramMan',
                title: '培訓計劃管理',
                icon: 'School',
            },
            {
                index: 'courseMan',
                title: '課程管理',
                icon: 'collection',
            },
            {
                index: 'gridMan',
                title: '分類管理',
                icon: 'notebook',
            },
        ]
    },
]

export default menuConfig;    